package com.jqbd.service.impl;

import com.jqbd.mapper.EducationMapper;
import com.jqbd.pojo.Education;
import com.jqbd.service.EducationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author yuan
 * @date 2022/11/11 9:45
 * @description
 */
@Transactional
@Service
public class EducationServiceImpl implements EducationService {

    @Autowired
    private EducationMapper educationMapper;

    @Override
    public List<Education> findAll() {
        return educationMapper.findAll();
    }

    @Override
    public int add(Education education) {

        return  educationMapper.add(education);
    }

    @Override
    public int update(Education education) {
        return educationMapper.update(education);
    }

    @Override
    public void deleteById(Integer educationId) {
        educationMapper.deleteById(educationId);
    }

    @Override
    public int deleteByIds(Integer[] educationIds) {
        return educationMapper.deleteByIds(educationIds);
    }

    @Override
    public void save(MultipartFile file) {
        educationMapper.save(file);
    }
}
